package com.manyan.demo.mapper;

import com.manyan.demo.an.DataSource;
import com.manyan.demo.model.Car;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName PrimaryCarMapper
 * @description: TODO
 * @author: 朱同学
 * @Date 2021/5/21 17:04
 **/
@Component
@Mapper
public interface PrimaryCarMapper {

    @DataSource
    @Select("select * from car")
    public List<Car> finalAll();
}
